<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*" import="common.DBManager" import="javax.servlet.*"
    import="java.io.*" import="java.sql.*"%>
<%
	session.setAttribute("stage", "0");
	request.setCharacterEncoding("UTF-8");
%>
<jsp:include page="/share/layout.jsp" flush="true">
    <jsp:param name="title" value="書籍情報登録確認"/>
    <jsp:param name="css" value="booksearch.css"/>
    <jsp:param name="style" value="common.css"/>
    <jsp:param name="content">
        <jsp:attribute name="value">
<!-- contents start -->
<%

	String title = (String)request.getParameter("title");
	String genre = (String)request.getParameter("genre");
	String publisher = (String)request.getParameter("publisher");
	String writer = (String)request.getParameter("writer");
	String content = (String)request.getParameter("content");
	String publication_date = (String)request.getParameter("publication_date");
	String isbn = (String)request.getParameter("isbn");
	String picture = (String)request.getParameter("picture");

	String duplicate = (String)request.getAttribute("duplicate");
	%>
<script language='JavaScript'>

	function pop(){
		window.alert('登録が完了しました');
	}
	</script>



<form action="/Books/book/WriteServlet"  method="post">
<table class = "form_table">
 	<tr>
		<th>タイトル</th>
		<td><input type="hidden"  name="title"  value="<%= title %>"  size="80"/><%= title %>
		</td>
	</tr>
		<tr>
		<th>著者名</th>
		<td><input type="hidden"  name="writer"  value="<%= writer %>" size="80"/><%= writer %>
		</td>
	</tr>
		<tr>
		<th>出版者</th>
		<td><input type="hidden"  name="publisher"  value="<%= publisher %>" size="80"/><%= publisher %></td>
	</tr>
	<tr>
		<th>ジャンル</th>
		<td><input type="hidden"  name="genre"  value="<%= genre %>"  size="80"/><%= genre %>
		</td>
	</tr>
	<tr>
		<th>ISBN</th>
		<td><input type="hidden"  name="isbn"  value="<%= isbn %>" size="80"/><%= isbn %></td>
	</tr>
	<tr>
		<th>発行年月日</th>
		<td><input type="hidden"  name="publication_date"  value="<%= publication_date %>"size="80"/><%= publication_date %></td>
	</tr>
	<tr>
		<th>画像ファイル名</th>
		<td><input type="hidden"  name="picture"  value="<%= picture %>" size="80"/><%= picture %></td>
	</tr>
	<tr>
		<th>内容</th>
		<td><TEXTAREA name="content"  COLS="50" ROWS="5" readonly style="border:0"><%= content %>  </TEXTAREA></td>
	</tr>

</table>

<div id="msg_area">
以上の内容で登録しますか？</div>

	<br>
	<div id  ="button">
	<input type="button" value="戻る" class="button" style="cursor:pointer" onClick="history.back(); return false;" />
	<input class = "button" type="submit"  value="登録" />
	</div>
	</form>


<!-- 	<form action="/Books/book/userBookEntry.jsp"  method="post"> -->
<%-- 	<input type="hidden"  name="title"  value="<%= title %>"/> --%>
<%-- 	<input type="hidden"  name="genre"  value="<%= genre %>"/> --%>
<%-- 	<input type="hidden"  name="writer"  value="<%= writer %>"/> --%>
<%-- 	<input type="hidden"  name="publisher"  value="<%= publisher %>"/> --%>
<%-- 	<input type="hidden"  name="publication_date"  value="<%= publication_date %>"/> --%>
<%-- 	<input type="hidden"  name="isbn"  value="<%= isbn %>" size="80"/> --%>
<%-- 	<input type="hidden"  name="content"  value="<%= content %>" size="80"/> --%>
<%-- 	<input type="hidden"  name="picture"  value="<%= picture %>"/> --%>
<!-- 	<div id  ="button"> -->
<!-- 	<input class = "button"  type="submit"  value="戻る"/> -->
<!-- 	</div> -->
<!-- 	</form> -->



<!-- contents end -->
        </jsp:attribute>
    </jsp:param>
</jsp:include>

